package com.dundun.SSO.core;

import java.util.List;

public interface BaseService<Pojo> {

    Pojo selectByPrimaryKey(Object key);

    List<Pojo> selectByExample(Object example);

    List<Pojo> selectAll();

    int save(Pojo entity);

    int saveNotNull(Pojo entity);

    int delete(Object key);

    int updateByPrimaryKey(Pojo entity);

    int updateNotNull(Pojo entity);

    public Pojo selectOne(Pojo entity);

    public int selectCountByExample(Object example);

    public int insertList(List<Pojo> list);

    public int selectCount(Pojo entity);

}
